package structure.composite;

/**
 * 叶子two
 *
 * @author wangxin213
 * @date 2023/03/08
 */
public class LeafTwo implements Component{
    private String name;

    public LeafTwo(String name) {
        this.name = name;
    }

    @Override
    public void operation() {
        System.out.println("叶子节点Two:"+name+"执行了业务方法");
    }
}